package com.yycx.module.bus.client.entity;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.TableName;
import com.yycx.common.mybatis.base.entity.AbstractEntity;
import com.baomidou.mybatisplus.annotation.IdType;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.yycx.common.mybatis.annotation.TableAlias;

/**
 * 药品采购计划表
 *
 * @author flyme
 * @date 2020-12-03
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("bus_drugs_plan")
@TableAlias("bdp")
@ApiModel(value = "BusDrugsPlan对象", description = "药品采购计划表")
public class BusDrugsPlan extends AbstractEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "drugsPlanId", type = IdType.ASSIGN_ID)
    private Long drugsPlanId;

    @ApiModelProperty(value = "部门Id")
    private Long deptId;

    @ApiModelProperty(value = "实例Id")
    private String processInstanceId;

    @ApiModelProperty(value = "付款类型")
    private Long paymentTypeId;

    @ApiModelProperty(value = "供货商Id")
    private Long supplierId;

    @ApiModelProperty(value = "药品Id")
    private Long drugsId;

    @ApiModelProperty(value = "提交人Id")
    private Long userId;

    @ApiModelProperty(value = "公司Id")
    private Long companyId;

    @ApiModelProperty(value = "采购数量")
    private BigDecimal drugsNum;

    @ApiModelProperty(value = "采购价")
    private BigDecimal costPrice;

    @ApiModelProperty(value = "采购金额")
    private BigDecimal planAmount;

    @ApiModelProperty(value = "预付款")
    private BigDecimal advancePayment;

    @ApiModelProperty(value = "差额")
    private BigDecimal returnAmount;

    @ApiModelProperty(value = "采购日期")
    private Date planDate;

    @ApiModelProperty(value = "审批状态")
    private Integer checkState;

    @ApiModelProperty(value = "收款单位")
    private String receivingUnit;

    @ApiModelProperty(value = "银行")
    private String bank;

    @ApiModelProperty(value = "银行卡号")
    private String bankNo;

}
